import java.util.*;
import java.io.*;
import java.net.*;

public class StockRecord  implements Serializable {

    private String _time         = null;
    private String _symbol       = null;
    private String _compname     = null;
    private String _price        = null;
    private String _change       = null;
    private String _percent      = null;
    private String _volume       = null;
    private String _52high       = null;
    private String _52low        = null;
    private String _peratio      = null;
    private String _marktcap     = null;
    private String _charturl     = null;
    private String _sectorId     = null;
    private String _sectorName   = null;
    private String _industryId   = null;
    private String _industryName = null;

    public StockRecord() 
    {
	this( "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
    }
					
    public StockRecord ( String time, String tick, String name, String price, 
			 String change, String percent, String volume, 
			 String high, String low, String peratio, 
			 String mcap, String url, String s_id, String s_name, 
			 String i_id, String i_name) 
    {
	setTime         (time);
	setTick         (tick);
	setName         (name);
	setPrice        (price);
	setChange       (change);
	setPercent      (percent);
	setVolume       (volume);
	setHigh         (high);
	setLow          (low);
	setPeratio      (peratio);
	setMarkCap      (mcap);
	setUrl          (url);
	setSectorId     (s_id);
	setSectorName   (s_name);
	setIndustryId   (i_id);
	setIndustryName (i_name);
    }

    public void setTime      (String time)    { _time     = time;    }
    public void	setTick      (String tick)    { _symbol   = tick;    }
    public void	setName      (String name)    { _compname = name;    }
    public void	setPrice     (String price)   { _price    = price;   }
    public void	setChange    (String change)  { _change   = change;  }
    public void	setPercent   (String percent) { _percent  = percent; }
    public void	setVolume    (String volume)  { _volume   = volume;  }
    public void	setHigh      (String high)    { _52high   = high;    }
    public void	setLow       (String low)     { _52low    = low;     }
    public void	setPeratio   (String peratio) { _peratio  = peratio; }
    public void	setMarkCap   (String mcap)    { _marktcap = mcap;    }
    public void	setUrl       (String url)     { _charturl = url;     }
    public void	setSectorId   (String s_id)    { _sectorId  = s_id;    }
    public void	setSectorName (String s_name)  { _sectorName= s_name;  }
    public void	setIndustryId   (String i_id)    { _industryId  = i_id;    }
    public void	setIndustryName (String i_name)  { _industryName= i_name;  }  

    public String getTime      () { return (_time      );    }
    public String getTick      () { return (_symbol    );    }
    public String getName      () { return (_compname  );    }
    public String getPrice     () { return (_price     );    }
    public String getChange    () { return (_change    );    }
    public String getPercent   () { return (_percent   );    }
    public String getVolume    () { return (_volume    );    }
    public String getHigh      () { return (_52high    );    }
    public String getLow       () { return (_52low     );    }
    public String getPeratio   () { return (_peratio   );    }
    public String getMarkCap   () { return (_marktcap  );    }
    public String getUrl       () { return (_charturl  );    }
    public String getSectorId   () { return (_sectorId   );    }
    public String getSectorName () { return (_sectorName );    }
    public String getIndustryId   () { return (_industryId   );    }
    public String getIndustryName () { return (_industryName );    }

    public void setStockRecordByVector( Vector vIn)
    {
	Enumeration enum = vIn.elements();

	while (enum.hasMoreElements()) {

	    _time     = (String)enum.nextElement();
	    _symbol   = (String)enum.nextElement();
	    _compname = (String)enum.nextElement();
	    _price    = (String)enum.nextElement();
	    _change   = (String)enum.nextElement();
	    _percent  = (String)enum.nextElement();
	    _volume   = (String)enum.nextElement();
	    _52high   = (String)enum.nextElement();
	    _52low    = (String)enum.nextElement();
	    _peratio  = (String)enum.nextElement();
	    _marktcap = (String)enum.nextElement();
	    _charturl = (String)enum.nextElement();
	    _sectorId  = (String)enum.nextElement();
	    _sectorName= (String)enum.nextElement();
	    _industryId  = (String)enum.nextElement();
	    _industryName= (String)enum.nextElement();
	}
    }
   
}






